package com.ebao.po.log;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.ebao.po.doctor.TDoctor;

/**
 * 医生登录日志
 * 
 * @author snow
 * @Date 2012-9-5
 */
@Entity
@Table(name = "T_Doctor_Login_Log")
public class TDoctorLoginLog implements Serializable {

	private static final long serialVersionUID = -6215354346299260523L;
	
	private Long id;
	private TDoctor doctor;
	private String loginDate;
	private String logoutDate;

	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@ManyToOne(cascade = {}, optional = false, targetEntity = TDoctor.class)
	public TDoctor getDoctor() {
		return doctor;
	}

	public void setDoctor(TDoctor doctor) {
		this.doctor = doctor;
	}

	@Column(length = 19)
	public String getLoginDate() {
		return loginDate;
	}

	public void setLoginDate(String loginDate) {
		this.loginDate = loginDate;
	}

	@Column(length = 19)
	public String getLogoutDate() {
		return logoutDate;
	}

	public void setLogoutDate(String logoutDate) {
		this.logoutDate = logoutDate;
	}

}
